<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" 
    import="java.util.List"
    import="quizman.domain.*"
    %><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>View All Quizzes</title>
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<%
	List<Quiz> quizzes = (List<Quiz>)request.getAttribute("quizzes");
%>
<body>
<h1>List of quizzes</h1>
<ul>
<% for(Quiz quiz: quizzes){ %>
	<li><%= quiz.getName() %>
	<a href="ViewQuizPageController?quizName=<%=quiz.getName() %>">View</a>
	<a href="EditQuizPageController?quizName=<%=quiz.getName() %>">Edit</a></li>
<% } %>
</ul>
<p>Return to the <a href="<%= request.getContextPath() %>/">index</a>.</p>
</body>
</html>